package commandes;

import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import beans.*;
import bdd.*;

// Cette cde recupere l'ensemble des clients:
//
public class CommandeClients implements Commande {
  private String next;

  public CommandeClients(String next) {
        this.next = next;
  }

  public String execute(HttpServletRequest req) throws Exception {
	  DBS db = DBS.getInstance();
	  List<Client> clients = db.getDB_Client().getClients();
	System.out.println("======> clients = "+clients);
	  req.setAttribute("clients", clients);
          return next;
  }

}
